/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const financialManageRouter = {
  path: '/financialManage',
  component: Layout,
  redirect: '/financialManage/businessCapitalManage',
  name: 'financialManageRouter',
  meta: {
    title: '资金流水',
    icon: 'financialManage',
    roles: 'NORMAL_ADMIN'
  },
  children: [
    {
      path: 'businessCapitalManage',
      component: () => import('@/views/financialManage/businessCapitalManage'),
      name: 'businessCapitalManage',
      meta: {
        title: '商家交易明细',
        icon: 'businessCapitalManage',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'buyerGoldCoinManage',
      component: () => import('@/views/financialManage/buyerGoldCoinManage'),
      name: 'buyerGoldCoinManage',
      meta: {
        title: '买手交易明细',
        icon: 'buyerGoldCoinManage',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'platformGoldCoinManage',
      component: () => import('@/views/financialManage/platformGoldCoinManage'),
      name: 'platformGoldCoinManage',
      meta: {
        title: '平台交易明细',
        icon: 'buyerGoldCoinManage',
        roles: 'NORMAL_ADMIN'
      }
    }
  ]
}

export default financialManageRouter
